import App from './App'
import * as api from 'common/api.js'
import * as api2 from 'common/api2.js'
import uView from '@/uni_modules/uview-ui'
 
import nodata from './components/nodata'
import headertop from './components/header'
import headerinfo from './components/headerinfo'
import editor from './components/editor'
 
import backos from './components/backos'
Vue.component('nodata', nodata);
Vue.component('headertop', headertop);
Vue.component('headerinfo', headerinfo);
Vue.component('editor', editor);
Vue.component('backos', backos);
Vue.use(uView)
import VueQuillEditor from 'vue-quill-editor'
 
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
 
Vue.use(VueQuillEditor, /* { 默认全局 } */)

import selectpicker from './components/selectpicker.vue';
Vue.component('selectpicker',selectpicker)

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
 
Vue.use(ElementUI)

import message from '@/components/quick-message/quick-message.vue'
Vue.component('msg',message);



// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
import Show from 'common/show.js'
import utils from 'common/utils.js'
import global from 'common/global.js'
Vue.prototype.$api = api
Vue.prototype.$api2 = api2
Vue.prototype.$global = global
Vue.prototype.$Show = Show
Vue.prototype.$utils = utils


